<template>
  <div class="ed-yyds-div">
    <el-input type="textarea" :rows="5" placeholder="请输入文本信息" v-model="str">
    </el-input>
    <el-button icon="el-icon-position" size="small" type="primary" @click="setConfig()">前 往 配 置</el-button>
    <ed-form ref="edModel"></ed-form>
  </div>
</template>
<script>
  import edForm from '@/views/page/kong2/edForm'
  export default {

    components: {
      edForm
    },

    data() {
      return {
        str: '指标值>10 且(时间维度>2022-11-11 11:11:11 或指标值< 12)'
      }
    },

    mounted() {

    },

    methods: {
      setConfig() {
        if (this.str === '') {
          this.$message.warning('请输入文本信息后重试！')
          return
        }
        this.$refs.edModel.init(this.str)
      }
    },
  }
</script>
<style scoped>
  .ed-yyds-div {
    padding: 15px;
  }

  .el-button {
    margin-top: 20px;
  }
</style>